// 数组转字符串
export const arr2str = (arr, sep=",") => {

    if (!arr || arr.length == 0){
        return ''
    }
    return arr.join(sep)

}

// 字符串转数组
export const str2arr = (str, sep=",") => {
    if (!str){
        return [];
    }else if (str instanceof Array){
        return str
    }else if (typeof str == 'string') {
        return str.split(sep)
    }

    return [];


}
